retain_all

function retain_all(values: collection<-T>): boolean

Retain in this collection only those elements found in the given collection. In other words, remove from this collection all elements that are not found in the given collection.

Return

true if any elements were removed from this collection, false if it was not modified

Since

0.14.16

Parameters

values

the collection of elements to retain